package com.skill.maven.user.manager.web.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author daipeng01
 * @desc
 * @date 2021/7/14 7:57 下午
 **/
@RestController
@RequestMapping("/api/user")
public class UserController {

    @GetMapping("get")
    public Map<String,Object> getUserById(int id) {
        Map<String, Object> map = new HashMap<>();
        map.put("userName", "张三");
        map.put("userId", id);
        return map;
    }
}
